﻿// Decompiled with JetBrains decompiler
// Type: BUTR.DependencyInjection.Logger.DefaultBUTRLogger`1
// Assembly: MCMv5, Version=5.10.2.0, Culture=neutral, PublicKeyToken=null
// MVID: 7AB326B9-B2B4-41C2-9177-68E944071101
// Assembly location: D:\steam\steamapps\workshop\content\261550\2859238197\bin\Win64_Shipping_Client\MCMv5.dll

using System.Diagnostics;

#nullable enable
namespace BUTR.DependencyInjection.Logger
{
  public class DefaultBUTRLogger<T> : IBUTRLogger<T>, IBUTRLogger
  {
    public void LogMessage(LogLevel logLevel, string message, params object[] args)
    {
      switch (logLevel)
      {
        case LogLevel.Information:
          Trace.TraceInformation(message, args);
          break;
        case LogLevel.Warning:
          Trace.TraceWarning(message, args);
          break;
        case LogLevel.Error:
          Trace.TraceError(message, args);
          break;
        case LogLevel.Critical:
          Trace.TraceError(message, args);
          break;
        default:
          Trace.TraceInformation(message, args);
          break;
      }
    }
  }
}
